package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Mould_PlanOut", description = "模具计划领出表")
@TableName(value = "Mould_PlanOut")
public class MouldPlanOut extends FBaseEntity implements Serializable {


    
    @NotNull(message="[模具Id]不能为空")
    @ApiModelProperty("模具Id")
    @TableField(value = "moldId")
    private Long moldId;
    
    @NotNull(message="[设备ID]不能为空")
    @ApiModelProperty("设备ID")
    @TableField(value = "facilityId")
    private Long facilityId;
    
    @NotNull(message="[生产资源Id]不能为空")
    @ApiModelProperty("生产资源Id")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchId")
    private Long dispatchId;
    
    @ApiModelProperty("工序Id")
    @TableField(value = "processId")
    private Long processId;
    
    @ApiModelProperty("计划生成时间")
    @TableField(value = "createTime")
    private Date createTime;
    
    @ApiModelProperty("实际计划结束时间")
    @TableField(value = "endTime")
    private Date endTime;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("操作人")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "operator")
    private String operator;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "reamrk")
    private String reamrk;
    
    @ApiModelProperty("状态")
    @TableField(value = "status")
    private Long status;






}

